package com.feign.service;

import com.feign.hystrix.SsoClientServiceHystrix;
import com.github.pagehelper.PageInfo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * Created by yangjianbo on 2016/10/19.
 */
@FeignClient("ms-enterprise")
public interface EnterpriseClientService {

    @RequestMapping(value = "search",method = RequestMethod.GET)
    PageInfo<Map> search(@RequestParam(value = "curPage",required = false,defaultValue = "1") int curPage,
                                @RequestParam(value = "pageSize",required = false,defaultValue = "10") int pageSize);
}
